package com.aspose.cells;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

final class zib {
   private static int a;
   private static int b;
   private static int c;

   static void a(zif var0) throws Exception {
      zn var1 = var0.ap();
      zbcr var2 = var0.z();
      if (var0.z().getCount() != 0 && zhz.a((List)var0.z().i()) != 0) {
         if (var0.A().a().getCount() > 0) {
            var0.z().b = true;
         }

         if (var0.A().b().getCount() > 0) {
            var0.z().c = true;
         }

         var0.z().a(zhz.a(var0.z().a()));
         var0.z().b(zhz.a(var0.z().b()));
         var0.z().a(zhz.b(var0.z().a()));
         var0.z().b(zhz.b(var0.z().b()));
         String var3 = zhz.c(var0);
         if (!"".equals(var3)) {
            throw new IllegalArgumentException(var3);
         } else {
            f(var0);
            zhz.e(var0);
            h(var0);
            zbui.a(var0.e(), var0.E(), var0.z(), var0.z().c(0));
            boolean var4 = zhz.a(var0.M());
            boolean var5 = zvq.a(var0);
            if (var4) {
               if (var0.p() < 0) {
                  var0.f(0);
               }

               if (var0.p() > 44) {
                  var0.f(44);
               }

               if (var0.D() < 0) {
                  var0.h(0);
               }

               if (var0.D() > 44) {
                  var0.h(44);
               }
            }

            if (!var5) {
               var0.I().K().a("");
               var0.I().d(false);
            }

            int var6 = zhz.b;
            com.aspose.cells.b.a.b.zp var7 = new com.aspose.cells.b.a.b.zp(a, a, var0.a() - a * 2, var0.b() - a * 2);
            if (var7.f() < 0) {
               var7.d(0);
            }

            if (var0.K().j()) {
               com.aspose.cells.b.a.b.zt var8 = new com.aspose.cells.b.a.b.zt((float)var7.e() * 0.8F, (float)var7.f() * 0.8F);
               com.aspose.cells.b.a.b.zs var9 = zbtp.a(var1, var0.K(), var8);
               var0.K().e().b.a((var0.a() - var9.b()) / 2);
               var0.K().e().b.b(a);
               var0.K().e().b.a(var9);
               var7.b(var7.d() + var9.c() + var6);
               var7.d(var7.f() - (var9.c() + var6));
            }

            boolean var39 = zalc.a(var0);
            var0.x().b = var39;
            zhz.d(var0);
            com.aspose.cells.b.a.b.zp[] var41;
            if (var0.v()) {
               if (var0.M() != 48 && var0.M() != 45 && !var39) {
                  zhz.g(var0);
                  var41 = new com.aspose.cells.b.a.b.zp[]{var7};
                  zalc.a(var1, var0.x(), var41);
                  var7 = var41[0];
               } else {
                  zbcp var40 = (zbcp)((zbcp)var0.z().j().get(0));
                  zhz.a(var0, var40);
                  com.aspose.cells.b.a.b.zp[] var10 = new com.aspose.cells.b.a.b.zp[]{var7};
                  zalc.a(var1, var0.x(), var40, var10);
                  var7 = var10[0];
               }
            }

            var41 = new com.aspose.cells.b.a.b.zp[]{var7};
            zatz.a(var0, var41);
            var7 = var41[0];
            var0.B().b = new com.aspose.cells.b.a.b.zp(var7.c(), var7.d(), var7.e(), var7.f());
            int var42;
            if (!var0.B().s()) {
               var0.a(var0.B().p());
               if (var0.B().l() + var0.B().n() > 4000) {
                  var0.B().a(4000 - var0.B().n());
               }

               if (var0.B().m() + var0.B().o() > 4000) {
                  var0.B().b(4000 - var0.B().o());
               }

               var7.a(var0.B().w());
               var7.b(var0.B().x());
               var7.c(var0.B().u());
               var7.d(var0.B().v());
               var7.a(var7.c() + 5);
               var7.b(var7.d() + 5);
               if (var7.i() + 5 > var0.a()) {
                  var7.c(var0.a() - 5 - var7.c());
               }

               if (var7.j() + 5 > var0.b()) {
                  var7.d(var0.b() - 5 - var7.d());
               }

               if (var0.M() == 45 || var0.M() == 48) {
                  var41 = new com.aspose.cells.b.a.b.zp[]{var7};
                  zatz.a(var41, var0, 0);
                  var7 = var41[0];
                  var42 = zhz.c;
                  var0.a(new com.aspose.cells.b.a.b.zp(var7.c() - var42, var7.d() - var42, zbuk.c((double)((float)var7.e() * (1.0F - 2.0F * (float)var42 / (float)var0.a()))), zbuk.c((double)((float)var7.f() * (1.0F - 2.0F * (float)var42 / (float)var0.b())))));
               }

               var0.B().b = new com.aspose.cells.b.a.b.zp(var7.c(), var7.d(), var7.e(), var7.f());
            } else {
               var42 = zhz.c;
               var0.a(new com.aspose.cells.b.a.b.zp(var7.c() - var42, var7.d() - var42, zbuk.c((double)((float)var7.e() * (1.0F - 2.0F * (float)var42 / (float)var0.a()))), zbuk.c((double)((float)var7.f() * (1.0F - 2.0F * (float)var42 / (float)var0.b())))));
            }

            var0.a(new com.aspose.cells.b.a.b.zq((float)var7.c(), (float)var7.d(), (float)var7.e(), (float)var7.f()));
            var0.B().b = new com.aspose.cells.b.a.b.zp(var7.c(), var7.d(), var7.e(), var7.f());
            double var43 = 0.0D;
            double var11 = 0.0D;
            double[] var13 = new double[]{var43};
            double[] var14 = new double[]{var11};
            boolean var15 = zhz.a((List)var2.i(), (double[])var13, (double[])var14, (zbo)var0.E());
            var43 = var13[0];
            var11 = var14[0];
            boolean var16 = var0.E().O();
            boolean var17 = var0.E().P();
            boolean var18 = var0.E().N();
            boolean var19 = var0.E().M();
            zhz.a(var1, var0.E(), var11, var43, var15, var0.E().l, var0.M(), var7, var4, var2.c(0));
            zhz.a(var1, var0.e(), var0.e().l, var7, var0.M(), var2, var4);
            if (var5) {
               g(var0);
            }

            var7.a(var7.c() + c);
            var7.b(var7.d() + c);
            var7.c(var7.e() - 2 * c);
            var7.d(var7.f() - 2 * c);
            zvq.a(var0, var7, var4);
            zbq.a(var0);
            com.aspose.cells.b.a.b.zp var24 = new com.aspose.cells.b.a.b.zp(var7.c(), var7.d(), var7.e(), var7.f());
            com.aspose.cells.b.a.b.zp[] var25;
            if (!zbuk.a(var7) && var0.e().K().j() && var0.e().q()) {
               var25 = new com.aspose.cells.b.a.b.zp[]{var7};
               a(var1, var0.e(), var24, var25, var4);
               var7 = var25[0];
            }

            if (!zbuk.a(var7) && var0.E().K().j() && var0.E().q()) {
               var25 = new com.aspose.cells.b.a.b.zp[]{var7};
               a(var1, var0.E(), var24, var25, var4);
               var7 = var25[0];
            }

            if (!zbuk.a(var7) && var5 && var0.I().K().j() && var0.I().q()) {
               var25 = new com.aspose.cells.b.a.b.zp[]{var7};
               a(var1, var0.I(), var25);
               var7 = var25[0];
            }

            boolean var44 = false;
            int var26 = var0.D() % 90;
            int var27 = var0.D() / 45;
            int var29;
            if (!zbuk.a(var7) && var0.u()) {
               zhz.f(var0);
               com.aspose.cells.b.a.b.zs var28 = zir.a(var1, var0.k(), var7);
               var0.k().a(var28);
               var29 = zir.b(var1, var0.k(), var7);
               var0.k().a(var29);
               int var30 = var28.c() + var29;
               var0.k().a.d(var30);
               com.aspose.cells.b.a.b.zo[] var31 = c(var0);
               if (var0.p() > 0 && !var4) {
                  switch(var27) {
                  case 0:
                  case 3:
                  case 4:
                  case 7:
                  case 8:
                     var7.d(var7.f() - (var30 + c));
                     var7.a(var7.c() + var28.b());
                     var7.c(var7.e() - var28.b());
                     var0.e().j(3);
                     var0.e().f(2);
                     var0.e().h(2);
                     break;
                  case 1:
                  case 2:
                  case 5:
                  case 6:
                     var7.d(var7.f() - var30);
                     var0.k().a.a(var7.c() + var28.b());
                     var0.k().a.b(var7.j());
                     var0.k().a.c(var7.e() - var28.b());
                  }
               } else {
                  var7.d(var7.f() - var30);
                  var0.k().a.a(var7.c() + var28.b());
                  var0.k().a.b(var7.j());
                  var0.k().a.c(var7.e() - var28.b());
               }

               zvq.a(var0, var7, var4);
            }

            com.aspose.cells.b.a.b.zp var45 = new com.aspose.cells.b.a.b.zp(var7.c(), var7.d(), var7.e(), var7.f());
            var29 = var0.z().h();
            com.aspose.cells.b.a.b.zs var46 = zbq.b(var1, var0.I(), var7, var2.getCount(), false, var2.c(0));
            int var47 = var0.I().F().k();
            int var34;
            if (!zbuk.a(var7) && var0.I().E() != 3 && var0.I().q() && var5) {
               com.aspose.cells.b.a.b.zp var32 = zbq.a(var1, var0.I(), var29, var4);
               if (!var32.k() && var32.e() > 0 && var32.f() > 0) {
                  if (var32.i() > var45.i() - var6) {
                     var7.c(var7.e() - (var32.i() - (var45.i() - var6)));
                  }

                  if (var32.j() > var45.j() - var6) {
                     var7.d(var7.f() - (var32.j() - (var45.j() - var6)));
                  }

                  if (var32.c() < var45.c() + var6) {
                     var34 = var45.c() + var6 - var32.c();
                     var7.a(var7.c() + var34);
                     var7.c(var7.e() - var34);
                  }

                  if (var32.d() < var45.d() + var6) {
                     var34 = var45.d() + var6 - var32.d();
                     var7.b(var7.d() + var34);
                     var7.d(var7.f() - var34);
                  }
               }

               zvq.a(var0, var7, false);
            }

            com.aspose.cells.b.a.b.zs var48 = zbq.a(var1, var0.E(), var2.c(0), var4);
            if (!zbuk.a(var7) && var0.E().E() != 3 && var0.E().q()) {
               if (!var4) {
                  com.aspose.cells.b.a.b.zo var33 = e(var0);
                  if (var33.d() < var0.N().j()) {
                     var34 = (int)(var33.d() - (float)var7.c());
                     if (!var44) {
                        var34 -= var0.E().K().e().b.b().b();
                     }

                     if (var34 < var48.b()) {
                        var7.a(var7.c() + var48.b());
                        var7.c(var7.e() - var48.b());
                     }
                  } else {
                     var34 = (int)((float)var7.i() - var33.d());
                     if (var34 < var48.b()) {
                        var7.c(var7.e() - var48.b());
                     }
                  }

                  if (var0.p() >= 0) {
                     if (var0.ae().m() - var33.e() < (float)(var48.c() / 2)) {
                        var7.d(var7.f() - var48.c() / 2);
                     }
                  } else if (var33.e() - var0.N().i() - var0.ae().g() < (float)(var48.c() / 2)) {
                     var7.b(var7.d() + var48.c() / 2);
                     var7.d(var7.f() - var48.c() / 2);
                  }
               } else {
                  com.aspose.cells.b.a.b.zo[] var49 = c(var0);
                  var34 = var48.c();
                  if (var7.j() - (int)var49[0].e() < var34) {
                     var7.d(var7.f() - var34 + (var7.j() - (int)var49[0].e()));
                  }
               }

               zvq.a(var0, var7, var4);
            }

            if (var4 && var16) {
               zhz.a(var0.E(), var11, var43, var0.M(), var0.N().g(), var4, var2.c(0), var18, var19, var16);
               zbq.a(var1, var0.E(), var2.c(0), var4);
            }

            com.aspose.cells.b.a.b.zs var50 = zbq.b(var1, var0.e(), var7, var29, var4, var2.c(0));
            var34 = var0.e().F().k();
            if (var0.z().e() != null) {
               var34 += var34 * var0.z().e().length;
            }

            int var36;
            if (!zbuk.a(var7) && var0.e().E() != 3 && var0.e().q()) {
               int var37;
               if (!var4) {
                  com.aspose.cells.b.a.b.zp var35 = zbq.a(var1, var0.e(), var29, var4);
                  if (!var35.k() && var35.e() > 0 && var35.f() > 0) {
                     if (var35.i() > var45.i() - var6) {
                        var7.c(var7.e() - (var35.i() - (var45.i() - var6)));
                     }

                     if (var35.j() > var45.j() - var6) {
                        var7.d(var7.f() - (var35.j() - (var45.j() - var6)));
                     }

                     if (var35.c() < var45.c() + var6) {
                        var37 = var45.c() + var6 - var35.c();
                        var7.a(var7.c() + var37);
                        var7.c(var7.e() - var37);
                     }

                     if (var35.d() < var45.d() + var6) {
                        var37 = var45.d() + var6 - var35.d();
                        var7.b(var7.d() + var37);
                        var7.d(var7.f() - var37);
                     }
                  }
               } else {
                  com.aspose.cells.b.a.b.zo var51 = e(var0);
                  var36 = var50.b() + var34;
                  var37 = (int)(var51.d() - (float)var45.c());
                  if (var37 < var36) {
                     var7.a(var7.c() + var36);
                     var7.c(var7.e() - var36);
                  }
               }

               zvq.a(var0, var7, var4);
            }

            int var52;
            if (!zbuk.a(var7) && var0.u()) {
               var52 = zir.b(var1, var0.k(), var7);
               if (var52 > var0.k().r()) {
                  var0.k().a(var52);
                  var36 = var52 - var0.k().r();
                  var0.k().a.d(var0.k().a.f() + var36);
                  com.aspose.cells.b.a.b.zo[] var55 = c(var0);
                  if (var0.p() > 0 && !var4) {
                     switch(var27) {
                     case 0:
                     case 3:
                     case 4:
                     case 7:
                     case 8:
                        var7.d(var7.f() - (var36 + c));
                        var0.e().j(3);
                        var0.e().f(2);
                        var0.e().h(2);
                        break;
                     case 1:
                     case 2:
                     case 5:
                     case 6:
                        var7.d(var7.f() - var36);
                        var0.k().a.b(var0.k().a.d() - var36);
                     }
                  } else {
                     var7.d(var7.f() - var36);
                     var0.k().a.b(var0.k().a.d() - var36);
                  }

                  zvq.a(var0, var7, var4);
               }
            }

            if (!zbuk.a(var7) && var0.E().q()) {
               var52 = zhz.a(var1, var0.E(), var4, var0.z().c(0), var7);
               boolean var54 = false;
               if (var4) {
                  var36 = zbuk.a((double)var0.N().g());
               } else {
                  var36 = zbuk.a((double)var0.N().i());
               }

               if (var16 && var0.E().l.size() > 3 && var52 > var36 && var36 != 0) {
                  var0.E().l.clear();
                  var0.E().i(var16);
                  var0.E().j(var17);
                  var0.E().h(var18);
                  var0.E().g(var19);
                  zhz.a(var1, var0.E(), var11, var43, var15, var0.E().l, var0.z().c(0).ag(), var7, var4, var0.z().c(0));
               }
            }

            if (!zbuk.a(var7) && var0.e().K().j() && var0.e().q()) {
               a(var0.e(), var7, var4, var48, var50, var34);
            }

            if (!zbuk.a(var7) && var0.E().K().j() && var0.E().q()) {
               a(var0.E(), var7, var4, var48, var50, var34);
            }

            if (!zbuk.a(var7) && var0.I().K().j() && var0.I().q()) {
               if (var0.I().E() != 3) {
                  var46.a(var46.b() + var47);
               }

               com.aspose.cells.b.a.b.zo[] var56 = d(var0);
               if (var56[0].e() == var56[1].e()) {
                  if (var0.p() >= 0) {
                     var0.I().K().e().b.a((int)((var56[0].d() + var56[1].d()) / 2.0F - (float)(var0.I().K().e().b.e() / 2)));
                  }
               } else {
                  if (var56[0].d() >= var56[1].d()) {
                     var56[1].d();
                  } else {
                     var56[0].d();
                  }

                  if (var56[0].d() >= var56[1].d()) {
                     var56[0].d();
                  } else {
                     var56[1].d();
                  }

                  switch(var27) {
                  case 0:
                  case 4:
                  case 8:
                     var0.I().K().e().b.a((int)(Math.abs(var56[0].d() + var56[1].d()) / 2.0F + (float)a(var0, var46)));
                  case 1:
                  case 2:
                  case 5:
                  case 6:
                  default:
                     break;
                  case 3:
                  case 7:
                     var0.I().K().e().b.a((int)(Math.abs(var56[0].d() + var56[1].d()) / 2.0F - (float)var0.I().K().e().b.e() - (float)a(var0, var46)));
                  }

                  var0.I().K().e().b.b((int)(Math.abs(var56[0].e() + var56[1].e()) / 2.0F));
               }
            }

            if (!zbuk.a(var7) && var0.u() && !var4) {
               com.aspose.cells.b.a.b.zo[] var53 = c(var0);
               if (var0.p() > 0) {
                  switch(var27) {
                  case 0:
                  case 3:
                  case 4:
                  case 7:
                  case 8:
                     var36 = var53[0].d() < var53[1].d() ? 0 : 1;
                     var0.k().a.a((int)var53[var36].d());
                     var0.k().a.b((int)var53[var36].e());
                     var0.k().a.c((int)Math.abs(var53[1].d() - var53[0].d()));
                  case 1:
                  case 2:
                  case 5:
                  case 6:
                  }
               }
            }

         }
      }
   }

   static void b(zif var0) throws Exception {
      a(var0);
      zn var1 = var0.ap();
      int var2 = var0.ap().j();
      zbcr var3 = var0.z();
      if (var0.z().getCount() != 0 && zhz.a((List)var0.z().i()) != 0) {
         boolean var4 = zhz.a(var0.M());
         boolean var5 = var0.B().D();
         int var6 = var0.z().h();
         float var7 = zhz.a(var0.E(), var0.N().e(), var0.N().g(), var4);
         double var8 = var0.E().l();
         float var10 = zhz.a(var0.E(), var0.N().f() - var0.N().i(), var0.N().i(), var4);
         zhz.a(var0.e(), var0.N().f() - var0.N().i(), var0.N().i(), var4, var0.z());
         zhz.a(var0.e(), var0.N().e(), var0.N().g(), var4, var0.z());
         zbcp var13 = (zbcp)((zbcp)var0.z().j().get(0));
         if (var13.as()) {
            var0.B().z();
         } else {
            ziy.a(var1, var0.B());
         }

         com.aspose.cells.b.a.b.zp var14 = var0.B().a;

         for(int var15 = 0; var15 < var3.getCount(); ++var15) {
            zpt var16 = var3.c(var15).w();
            var16.a().e(var0.B().a.e());
            var16.a().f(var0.B().a.f());

            for(int var17 = 0; var17 < var3.a(var15).k().getCount(); ++var17) {
               zpt var18 = var3.c(var15).D().b(var17).o();
               var18.a().e(var0.B().a.e());
               var18.a().f(var0.B().a.f());
            }
         }

         zvq.a(var1, var0, var4);
         if (!var0.B().D()) {
            switch(var0.M()) {
            case 3:
               zau.a(var1, var0, var10, var8, var6);
               break;
            case 4:
               zau.a(var1, var0, var10, var8, var6, false);
               break;
            case 5:
               zau.a(var1, var0, var10, var8, var6, true);
            case 6:
            case 7:
            case 8:
            case 12:
            case 13:
            case 14:
            case 15:
            case 16:
            case 35:
            case 36:
            case 37:
            case 38:
            case 39:
            case 40:
            case 41:
            case 42:
            case 44:
            case 46:
            case 47:
            case 49:
            default:
               break;
            case 9:
            case 24:
            case 31:
            case 53:
               zce.a(var1, var0, var7, var8, var6);
               break;
            case 10:
            case 25:
            case 32:
            case 54:
               zce.a(var1, var0, var8, var6);
               break;
            case 11:
            case 26:
            case 33:
            case 55:
               zce.b(var1, var0, var8, var6);
               break;
            case 17:
            case 27:
            case 34:
            case 56:
               zkq.b(var1, var0, var10, var8, var6);
               break;
            case 18:
            case 21:
            case 28:
            case 50:
               zkq.a(var1, var0, var10, var8, var6);
               break;
            case 19:
            case 22:
            case 29:
            case 51:
               zkq.a(var1, var0, var8, var6);
               break;
            case 20:
            case 23:
            case 30:
            case 52:
               zkq.b(var1, var0, var8, var6);
               break;
            case 43:
               zkq.c(var1, var0, var10, var8, var6);
               break;
            case 45:
            case 48:
               zatz.a(var1, var0);
            }
         }

         if (var0.i().d().g() && var0.B().d().g() && var0.ap().j() != 4) {
            var0.ap().b(4);
         }

         if (var0.E().q()) {
            if (var4) {
               zbq.b(var1, var0.E());
            } else {
               zbq.a(var1, var0.E());
            }
         }

         if (var0.e().q()) {
            if (var4) {
               zbq.a(var1, var0.e(), var6, var14);
            } else {
               zbq.a(var1, var0.e(), var6, var14, var4);
            }
         }

         if (var0.I().q()) {
            zbq.c(var1, var0.I());
         }

         if (var0.i().d().g() && var0.B().d().g() && var0.ap().j() != var2) {
            var0.ap().b(var2);
         }

         if (var0.E().K().j() && var0.E().q()) {
            a(var0, var1, var0.E());
         }

         if (var0.e().K().j() && var0.e().q()) {
            a(var0, var1, var0.e());
         }

         if (var0.I().K().j() && var0.I().q()) {
            a(var0, var1, var0.I());
         }

         if (var0.K().j()) {
            zbtp.a(var0, var0.K());
         }

         if (var0.u()) {
            if (var0.i().d().g() && var0.B().d().g() && var0.ap().j() != 4) {
               var0.ap().b(4);
            }

            zir.a(var1, var0.k(), var4);
            if (var0.i().d().g() && var0.B().d().g() && var0.ap().j() != var2) {
               var0.ap().b(var2);
            }
         }

         if (var0.v()) {
            if (var0.i().d().g() && var0.x().d().d().g() && var0.ap().j() != 4) {
               var0.ap().b(4);
            }

            if (var0.M() != 48 && var0.M() != 45 && !var0.x().b) {
               zalc.a(var1, var0.x(), var4, var13);
            } else {
               zalc.a(var1, var0.x(), var13);
            }

            if (var0.i().d().g() && var0.x().d().d().g() && var0.ap().j() != var2) {
               var0.ap().b(var2);
            }
         }

      }
   }

   private static void f(zif var0) {
      switch(var0.M()) {
      case 45:
      case 48:
         Iterator var1 = var0.z().iterator();

         while(var1.hasNext()) {
            zbcp var2 = (zbcp)var1.next();
            if (var2.I()) {
               var2.c(true);
            }

            var0.c(false);
            var0.e().d(false);
            var0.e().K().a("");
            var0.E().d(false);
            var0.E().K().a("");
            var0.e().s().a(0);
            var0.e().u().a(0);
            var0.E().s().a(0);
            var0.E().u().a(0);
         }

         if (var0.p() < 1) {
            var0.f(1);
         }

         if (var0.p() > 90) {
            var0.f(90);
         }
      default:
      }
   }

   static com.aspose.cells.b.a.b.zo[] c(zif var0) {
      com.aspose.cells.b.a.b.zo var1 = new com.aspose.cells.b.a.b.zo(var0.N().j(), var0.N().f());
      int var2 = var0.D() % 90;
      if (var2 >= 45) {
         var2 = 90 - var2;
      }

      int var5 = var0.D() / 45;
      float var3;
      float var4;
      switch(var5) {
      case 0:
      case 3:
      case 4:
      case 7:
      case 8:
         var3 = var0.N().g();
         var4 = var0.N().h();
         break;
      case 1:
      case 2:
      case 5:
      case 6:
      default:
         var3 = var0.N().h();
         var4 = var0.N().g();
      }

      float var6 = var4 * (float)Math.sin((double)var2 * 3.141592653589793D / 180.0D);
      float var7 = var4 * (float)Math.sin((double)var0.p() * 3.141592653589793D / 180.0D);
      com.aspose.cells.b.a.b.zo[] var8 = new com.aspose.cells.b.a.b.zo[4];
      com.aspose.cells.b.a.b.zo[] var9 = new com.aspose.cells.b.a.b.zo[4];
      zbuk.a(var8);
      zbuk.a(var9);
      switch(var5) {
      case 0:
      case 8:
         var8[0].a(var1.d() - (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() + var3);
         var8[2].a(var8[1].d() + var6);
         var8[3].a(var8[0].d() + var6);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() - var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[0];
         var9[1] = var8[1];
         var9[2] = var8[3];
         var9[3] = var8[2];
         break;
      case 1:
         var8[0].a(var1.d() - (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() + var6);
         var8[2].a(var8[1].d() + var3);
         var8[3].a(var8[0].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e() + var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[0];
         var9[1] = var8[1];
         var9[2] = var8[3];
         var9[3] = var8[2];
         break;
      case 2:
         var8[1].a(var1.d() - (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() + var6);
         var8[2].a(var8[1].d() + var3);
         var8[3].a(var8[0].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e() + var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[3];
         var9[1] = var8[2];
         var9[2] = var8[0];
         var9[3] = var8[1];
         break;
      case 3:
         var8[1].a(var1.d() - (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() + var3);
         var8[2].a(var8[1].d() + var6);
         var8[3].a(var8[2].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() + var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[3];
         var9[1] = var8[2];
         var9[2] = var8[0];
         var9[3] = var8[1];
         break;
      case 4:
         var8[0].a(var1.d() + (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() - var3);
         var8[2].a(var8[1].d() - var6);
         var8[3].a(var8[2].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() + var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[3];
         var9[1] = var8[2];
         var9[2] = var8[0];
         var9[3] = var8[1];
         break;
      case 5:
         var8[0].a(var1.d() + (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() - var6);
         var8[2].a(var8[1].d() - var3);
         var8[3].a(var8[0].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e() - var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[3];
         var9[1] = var8[2];
         var9[2] = var8[0];
         var9[3] = var8[1];
         break;
      case 6:
         var8[1].a(var1.d() + (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() - var6);
         var8[2].a(var8[1].d() - var3);
         var8[3].a(var8[0].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e() - var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[0];
         var9[1] = var8[1];
         var9[2] = var8[3];
         var9[3] = var8[2];
         break;
      case 7:
         var8[1].a(var1.d() + (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() - var3);
         var8[2].a(var8[1].d() - var6);
         var8[3].a(var8[2].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() - var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[0];
         var9[1] = var8[1];
         var9[2] = var8[3];
         var9[3] = var8[2];
      }

      return var9;
   }

   static com.aspose.cells.b.a.b.zo[] d(zif var0) {
      com.aspose.cells.b.a.b.zo var1 = new com.aspose.cells.b.a.b.zo(var0.N().j(), var0.N().f());
      int var2 = var0.D() % 90;
      if (var2 >= 45) {
         var2 = 90 - var2;
      }

      int var5 = var0.D() / 45;
      float var3;
      float var4;
      switch(var5) {
      case 0:
      case 3:
      case 4:
      case 7:
      case 8:
         var3 = var0.N().g();
         var4 = var0.N().h();
         break;
      case 1:
      case 2:
      case 5:
      case 6:
      default:
         var3 = var0.N().h();
         var4 = var0.N().g();
      }

      float var6 = var4 * (float)Math.sin((double)var2 * 3.141592653589793D / 180.0D);
      float var7 = var4 * (float)Math.sin((double)var0.p() * 3.141592653589793D / 180.0D);
      com.aspose.cells.b.a.b.zo[] var8 = new com.aspose.cells.b.a.b.zo[4];
      com.aspose.cells.b.a.b.zo[] var9 = new com.aspose.cells.b.a.b.zo[2];
      zbuk.a(var8);
      zbuk.a(var9);
      switch(var5) {
      case 0:
      case 8:
         var8[0].a(var1.d() - (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() + var3);
         var8[2].a(var8[1].d() + var6);
         var8[3].a(var8[0].d() + var6);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() - var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[1];
         var9[1] = var8[2];
         break;
      case 1:
         var8[0].a(var1.d() - (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() + var6);
         var8[2].a(var8[1].d() + var3);
         var8[3].a(var8[0].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e() + var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[1];
         var9[1] = var8[2];
         break;
      case 2:
         var8[1].a(var1.d() - (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() + var6);
         var8[2].a(var8[1].d() + var3);
         var8[3].a(var8[0].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e() + var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[1];
         var9[1] = var8[2];
         break;
      case 3:
         var8[1].a(var1.d() - (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() + var3);
         var8[2].a(var8[1].d() + var6);
         var8[3].a(var8[2].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() + var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[1];
         var9[1] = var8[2];
         break;
      case 4:
         var8[0].a(var1.d() + (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() - var3);
         var8[2].a(var8[1].d() - var6);
         var8[3].a(var8[2].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() + var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[0];
         var9[1] = var8[3];
         break;
      case 5:
         var8[0].a(var1.d() + (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() - var6);
         var8[2].a(var8[1].d() - var3);
         var8[3].a(var8[0].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e() - var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[0];
         var9[1] = var8[3];
         break;
      case 6:
         var8[1].a(var1.d() + (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() - var6);
         var8[2].a(var8[1].d() - var3);
         var8[3].a(var8[0].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e() - var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9[0] = var8[0];
         var9[1] = var8[3];
         break;
      case 7:
         var8[1].a(var1.d() + (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() - var3);
         var8[2].a(var8[1].d() - var6);
         var8[3].a(var8[2].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() - var7);
         var8[3].b(var8[2].e());
         var9[0] = var8[0];
         var9[1] = var8[3];
      }

      return var9;
   }

   static com.aspose.cells.b.a.b.zo e(zif var0) {
      com.aspose.cells.b.a.b.zo var1 = new com.aspose.cells.b.a.b.zo(var0.N().j(), var0.N().f());
      int var2 = var0.D() % 90;
      if (var2 >= 45) {
         var2 = 90 - var2;
      }

      int var5 = var0.D() / 45;
      float var3;
      float var4;
      switch(var5) {
      case 0:
      case 3:
      case 4:
      case 7:
      case 8:
         var3 = var0.N().g();
         var4 = var0.N().h();
         break;
      case 1:
      case 2:
      case 5:
      case 6:
      default:
         var3 = var0.N().h();
         var4 = var0.N().g();
      }

      float var6 = var4 * (float)Math.sin((double)var2 * 3.141592653589793D / 180.0D);
      float var7 = var4 * (float)Math.sin((double)var0.p() * 3.141592653589793D / 180.0D);
      com.aspose.cells.b.a.b.zo[] var8 = new com.aspose.cells.b.a.b.zo[4];
      com.aspose.cells.b.a.b.zo var9 = com.aspose.cells.b.a.b.zo.a();
      zbuk.a(var8);
      switch(var5) {
      case 0:
      case 8:
         var8[0].a(var1.d() - (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() + var3);
         var8[2].a(var8[1].d() + var6);
         var8[3].a(var8[0].d() + var6);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() - var7);
         var8[3].b(var8[2].e());
         var9 = var8[0];
         break;
      case 1:
         var8[0].a(var1.d() - (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() + var6);
         var8[2].a(var8[1].d() + var3);
         var8[3].a(var8[0].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e() + var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9 = var8[2];
         break;
      case 2:
         var8[1].a(var1.d() - (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() + var6);
         var8[2].a(var8[1].d() + var3);
         var8[3].a(var8[0].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e() + var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9 = var8[1];
         break;
      case 3:
         var8[1].a(var1.d() - (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() + var3);
         var8[2].a(var8[1].d() + var6);
         var8[3].a(var8[2].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() + var7);
         var8[3].b(var8[2].e());
         var9 = var8[3];
         break;
      case 4:
         var8[0].a(var1.d() + (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() - var3);
         var8[2].a(var8[1].d() - var6);
         var8[3].a(var8[2].d() + var3);
         var8[0].b(var1.e() - var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() + var7);
         var8[3].b(var8[2].e());
         var9 = var8[2];
         break;
      case 5:
         var8[0].a(var1.d() + (var3 + var6) / 2.0F);
         var8[1].a(var8[0].d() - var6);
         var8[2].a(var8[1].d() - var3);
         var8[3].a(var8[0].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e() - var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9 = var8[0];
         break;
      case 6:
         var8[1].a(var1.d() + (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() - var6);
         var8[2].a(var8[1].d() - var3);
         var8[3].a(var8[0].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e() - var7);
         var8[2].b(var8[1].e());
         var8[3].b(var8[0].e());
         var9 = var8[3];
         break;
      case 7:
         var8[1].a(var1.d() + (var3 + var6) / 2.0F);
         var8[0].a(var8[1].d() - var3);
         var8[2].a(var8[1].d() - var6);
         var8[3].a(var8[2].d() - var3);
         var8[0].b(var1.e() + var7 / 2.0F);
         var8[1].b(var8[0].e());
         var8[2].b(var8[1].e() - var7);
         var8[3].b(var8[2].e());
         var9 = var8[1];
      }

      return var9;
   }

   private static void a(zif var0, zn var1, zbo var2) throws Exception {
      if (!var2.c().B().D()) {
         zbtp.a(var0, var2.K());
      }
   }

   private static int a(zif var0, com.aspose.cells.b.a.b.zs var1) {
      int var2 = var0.D() % 90;
      if (var2 >= 45) {
         var2 = 90 - var2;
      }

      int var5 = var0.D() / 45;
      int var3;
      int var4;
      switch(var5) {
      case 0:
      case 3:
      case 4:
      case 7:
      case 8:
         var3 = var1.b();
         var4 = var1.c();
         break;
      case 1:
      case 2:
      case 5:
      case 6:
      default:
         var3 = var1.c();
         var4 = var1.b();
      }

      int var6 = (int)((double)var4 * Math.sin((double)var2 * 3.141592653589793D / 180.0D));
      return var3 + var6;
   }

   private static void a(zn var0, zbo var1, com.aspose.cells.b.a.b.zp var2, com.aspose.cells.b.a.b.zp[] var3, boolean var4) {
      boolean var5 = var4;
      com.aspose.cells.b.a.b.zs var6 = com.aspose.cells.b.a.b.zs.a();
      zif var7 = var1.c();
      if (var1.d() == 1) {
         var4 = !var4;
      }

      int var10;
      if (var4) {
         com.aspose.cells.b.a.b.zt var8 = new com.aspose.cells.b.a.b.zt((float)var3[0].e() * 0.8F, (float)var3[0].f() * 0.8F);
         var6 = zbtp.a(var7.ap(), var1.K(), var8);
         var1.K().e().b.a(var6);
         com.aspose.cells.b.a.b.zo var9 = e(var7);
         if (var9.d() < var7.N().j()) {
            var10 = (int)(var9.d() - (float)var2.c());
            if (var10 < var6.b()) {
               var3[0].a(var3[0].c() + var6.b());
               var3[0].c(var3[0].e() - var6.b());
            }
         } else {
            var10 = (int)((float)var3[0].i() - var9.d());
            if (var10 < var6.b()) {
               var1.K().e().b.a(var3[0].i() - var6.b());
               var1.K().e().b.b(var3[0].d() + (var3[0].f() - var6.c()) / 2);
               var3[0].c(var3[0].e() - var6.b());
            }
         }

         zvq.a(var7, var3[0], var4);
      } else {
         com.aspose.cells.b.a.b.zo[] var12 = c(var7);
         com.aspose.cells.b.a.b.zt var13;
         if (var7.p() == 0) {
            var13 = new com.aspose.cells.b.a.b.zt((float)var3[0].e() * 0.8F, (float)var3[0].f() * 0.7F);
            var6 = zbtp.a(var0, var1.K(), var13);
            var1.K().e().b.a(var6);
            var1.K().e().b.b(var3[0].j() - var6.c() - c);
            var10 = var3[0].j() - (int)var12[0].e();
            if (var10 < var6.c() + c) {
               var3[0].d(var3[0].f() - (var6.c() + c - var10));
            }
         } else if (var7.p() > 0) {
            if (var12[0].e() == var12[1].e()) {
               var13 = new com.aspose.cells.b.a.b.zt((float)var3[0].e() * 0.8F, (float)var3[0].f() * 0.7F);
               var6 = zbtp.a(var0, var1.K(), var13);
               var1.K().e().b.a(var6);
               boolean var14 = false;
               if (var5) {
                  var1.K().e().b.b(var3[0].j() - var6.c() - c);
               } else {
                  var1.K().e().b.b(var2.j() - var6.c() - c * 4);
               }

               var10 = var3[0].j() - (int)var12[0].e();
               if (var10 < var6.c() + c) {
                  var3[0].d(var3[0].f() - (var6.c() + c - var10));
               }
            } else {
               var13 = new com.aspose.cells.b.a.b.zt((float)var3[0].e() * 0.3F, (float)var3[0].f() * 0.3F);
               var6 = zbtp.a(var0, var1.K(), var13);
               var1.K().e().b.a(var6);
               var10 = var7.D() / 45;
               int var11;
               switch(var10) {
               case 1:
               case 5:
                  if ((int)Math.abs(var12[0].d() + var12[1].d()) / 2 - var3[0].c() < var6.b()) {
                     var11 = var6.b() - ((int)Math.abs(var12[0].d() + var12[1].d()) / 2 - var3[0].c());
                     var3[0].a(var3[0].c() + var11);
                     var3[0].c(var3[0].e() - var11);
                  }
                  break;
               case 2:
               case 6:
                  if (var3[0].i() - (int)Math.abs(var12[0].d() + var12[1].d()) / 2 < var6.b()) {
                     var11 = var6.b() - (var3[0].i() - (int)Math.abs(var12[0].d() + var12[1].d()) / 2);
                     var3[0].c(var3[0].e() - var11);
                  }
               case 3:
               case 4:
               }

               if (var3[0].j() - (int)Math.abs(var12[0].e() + var12[1].e()) / 2 < var6.c()) {
                  var3[0].d(var3[0].f() - (var6.c() + c) - (var3[0].j() - (int)Math.abs(var12[0].e() + var12[1].e()) / 2));
               }
            }

            zvq.a(var7, var3[0], var4);
         } else {
            var1.K().a("");
         }
      }

   }

   private static void a(zn var0, zbo var1, com.aspose.cells.b.a.b.zp[] var2) {
      com.aspose.cells.b.a.b.zs var3 = com.aspose.cells.b.a.b.zs.a();
      zif var4 = var1.c();
      com.aspose.cells.b.a.b.zo[] var5 = d(var4);
      com.aspose.cells.b.a.b.zt var6;
      int var7;
      if (var4.p() == 0) {
         var6 = new com.aspose.cells.b.a.b.zt((float)var2[0].e() * 0.8F, (float)var2[0].f() * 0.7F);
         var3 = zbtp.a(var0, var1.K(), var6);
         var1.K().e().b.a(var3);
         var1.K().e().b.b(var2[0].j() - var3.c() - c);
         var7 = var2[0].j() - (int)var5[0].e();
         if (var7 < var3.c() + c) {
            var2[0].d(var2[0].f() - (var3.c() + c - var7));
         }
      }

      if (var4.p() > 0) {
         if (var5[0].e() == var5[1].e()) {
            var6 = new com.aspose.cells.b.a.b.zt((float)var2[0].e() * 0.8F, (float)var2[0].f() * 0.7F);
            var3 = zbtp.a(var0, var1.K(), var6);
            var1.K().e().b.a(var3);
            boolean var9 = false;
            var1.K().e().b.b(var2[0].j() - var3.c() - c);
            var7 = var2[0].j() - (int)var5[0].e();
            if (var7 < var3.c() + c) {
               var2[0].d(var2[0].f() - (var3.c() + c - var7));
            }
         } else {
            var6 = new com.aspose.cells.b.a.b.zt((float)var2[0].e() * 0.3F, (float)var2[0].f() * 0.3F);
            var3 = zbtp.a(var0, var1.K(), var6);
            var1.K().e().b.a(var3);
            var7 = var4.D() / 45;
            int var8;
            switch(var7) {
            case 0:
            case 4:
            case 8:
               if (var2[0].i() - (int)Math.abs(var5[0].d() + var5[1].d()) / 2 < var3.b()) {
                  var8 = var3.b() - (var2[0].i() - (int)Math.abs(var5[0].d() + var5[1].d()) / 2);
                  var2[0].c(var2[0].e() - var8);
               }
            case 1:
            case 2:
            case 5:
            case 6:
            default:
               break;
            case 3:
            case 7:
               if ((int)Math.abs(var5[0].d() + var5[1].d()) / 2 - var2[0].c() < var3.b()) {
                  var8 = var3.b() - ((int)Math.abs(var5[0].d() + var5[1].d()) / 2 - var2[0].c());
                  var2[0].a(var2[0].c() + var8);
                  var2[0].c(var2[0].e() - var8);
               }
            }

            if (var2[0].j() - (int)Math.abs(var5[0].e() + var5[1].e()) / 2 < var3.c()) {
               var2[0].d(var2[0].f() - (var3.c() + c) - (var2[0].j() - (int)Math.abs(var5[0].e() + var5[1].e()) / 2));
            }
         }

         zvq.a(var4, var2[0], false);
      } else {
         var1.K().a("");
      }

   }

   private static void a(zbo var0, com.aspose.cells.b.a.b.zp var1, boolean var2, com.aspose.cells.b.a.b.zs var3, com.aspose.cells.b.a.b.zs var4, int var5) {
      boolean var6 = var2;
      com.aspose.cells.b.a.b.zs var7 = com.aspose.cells.b.a.b.zs.a();
      zif var8 = var0.c();
      if (var0.d() == 1) {
         var7 = var3;
         var6 = !var2;
      } else {
         var7 = var4;
         if (var0.E() != 3) {
            var4.a(var4.b() + var5);
         }
      }

      if (var6) {
         com.aspose.cells.b.a.b.zs var9 = var0.K().e().b.b();
         com.aspose.cells.b.a.b.zo var10 = e(var8);
         if (var10.d() < var8.N().j()) {
            var0.K().e().b.a(var0.E() == 3 ? (int)(var10.d() - (float)var9.b()) : (int)(var10.d() - (float)var7.b() - (float)var9.b()));
            var0.K().e().b.b((int)(var10.e() - var8.N().i() / 2.0F - (float)(var9.c() / 2)));
         } else {
            int var11 = (int)((float)var1.i() - var10.d());
            if (var11 >= var9.b()) {
               var0.K().e().b.a(var0.E() == 3 ? (int)var10.d() : (int)(var10.d() + (float)var7.b()));
               var0.K().e().b.b((int)(var10.e() - var8.N().i() / 2.0F - (float)(var9.c() / 2)));
            }
         }
      } else {
         com.aspose.cells.b.a.b.zo[] var12 = c(var8);
         if (var12[0].e() == var12[1].e()) {
            if (var8.p() >= 0) {
               var0.K().e().b.a((int)((var12[0].d() + var12[1].d()) / 2.0F - (float)(var0.K().e().b.e() / 2)));
            }
         } else {
            if (var12[0].d() >= var12[1].d()) {
               var12[1].d();
            } else {
               var12[0].d();
            }

            if (var12[0].d() >= var12[1].d()) {
               var12[0].d();
            } else {
               var12[1].d();
            }

            if ((var8.D() < 45 || var8.D() >= 90) && (var8.D() < 225 || var8.D() >= 270)) {
               var0.K().e().b.a((int)(Math.abs(var12[0].d() + var12[1].d()) / 2.0F + (float)a(var8, var7)));
            } else {
               var0.K().e().b.a((int)(Math.abs(var12[0].d() + var12[1].d()) / 2.0F - (float)var0.K().e().b.e() - (float)a(var8, var7)));
            }

            var0.K().e().b.b((int)(Math.abs(var12[0].e() + var12[1].e()) / 2.0F));
         }
      }

   }

   private static void g(zif var0) {
      zbo var1 = var0.I();
      ArrayList var2 = var0.I().l;
      ArrayList var3 = var0.z().j();

      for(int var4 = 0; var4 < var3.size(); ++var4) {
         zbcp var5 = (zbcp)var3.get(var4);
         com.aspose.cells.b.a.a.ze.a(var2, (Object)var5.C());
      }

      var1.f(0.0D);
      var1.d((double)var3.size());
      var1.c((double)var1.J());
      var1.e(var1.x() / 2.0D);
   }

   private static void h(zif var0) {
      if (var0.M() == 4 || var0.M() == 5) {
         var0.e(20);
      }

   }

   static {
      a = zhz.a;
      b = zhz.b;
      c = 2;
   }
}
